import request from '@/config/axios'

// 查询报白审批列表
export const getWhiteAuditPage = async (params) => {
    return await request.get({url: `/call/white-audit/page-by-system`, params})
}

// 查看坐席
export const getAgentList = async (id) => {
    return await request.get({url: `/call/white-audit/get-agent-by-system?auditId=` + id })
}

// 提交审批
export const submitReview = async (data) => {
    return await request.post({url: `/call/white-audit/deal-audit`, data })
}

// 审核
export const submitAgent = async (data) => {
    return await request.post({url: `/call/white-audit/submit-agent`, data })
}

// 关闭审批
export const offAudit = async (data) => {
    return await request.post({url: `/call/white-audit/update`, data })
}